package net.sf.calibur.engine.task;

import net.sf.calibur.engine.Event;


public abstract class Task {
	private Object eventId;
	private Handler parent;
	
	public Task(Object eventId) {
		this.eventId = eventId;
	}
	
	public void setParent(Handler parent) {
		this.parent = parent;
	}
	
	public Handler getParent() {
		return parent;
	}

	public Object getEventId() {
		return eventId;
	}
	
	public void setEventId(Object eventId) {
		this.eventId = eventId;
	}
	
	public abstract void execute(Event event) throws Exception;
}
